package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
@TableName("wh_warehousing")
public class WhWarehousing {
    /**
     * 入库单编号
     */
    @TableId(type = IdType.AUTO)
    private Integer warehousingEntryId;

    /**
     * 入库日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date receiptDate;

    /**
     * 入库类型
     */
    private String receiptType;

    /**
     * 存放仓库
     */
    private Integer warehouseId;

    /**
     * 验收人
     */
    private String inspector;

    /**
     * 验收备注
     */
    private String inspectionNotes;

    /**
     * 入库备注
     */
    private String receiptNotes;

    /**
     * 实际入库数量
     */
    private Integer total;

    /**
     * 入库总金额
     */
    private Double totalAmount;

    /**
     * 审批状态
     */
    private Integer approvalStatus;

    /**
     * 审批人
     */
    private Integer approverId;

    /**
     * 审批日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date approvalDate;

    @TableField(exist = false)
    private String warehouseName;
}
